package com.autohome.wz.business.order.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class CouponBatchSeller implements Serializable {
    private Integer id;

    private Integer sellerId;

    private Integer couponType;

    private String couponName;

    private BigDecimal couponAmount;

    private Date couponStartDate;

    private Date couponEndDate;

    private String couponRule;

    private Integer couponStock;

    private Integer takeNum;

    private Integer useNum;

    private Integer alertNum;

    private String sellerActivityId;

    private Integer isDel;

    private Date createdStime;

    private Date modifiedStime;

    private Integer validDays;

    private Integer status;

    private String createUser;

    private Long couponThreshold;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSellerId() {
        return sellerId;
    }

    public void setSellerId(Integer sellerId) {
        this.sellerId = sellerId;
    }

    public Integer getCouponType() {
        return couponType;
    }

    public void setCouponType(Integer couponType) {
        this.couponType = couponType;
    }

    public String getCouponName() {
        return couponName;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName == null ? null : couponName.trim();
    }

    public BigDecimal getCouponAmount() {
        return couponAmount;
    }

    public void setCouponAmount(BigDecimal couponAmount) {
        this.couponAmount = couponAmount;
    }

    public Date getCouponStartDate() {
        return couponStartDate;
    }

    public void setCouponStartDate(Date couponStartDate) {
        this.couponStartDate = couponStartDate;
    }

    public Date getCouponEndDate() {
        return couponEndDate;
    }

    public void setCouponEndDate(Date couponEndDate) {
        this.couponEndDate = couponEndDate;
    }

    public String getCouponRule() {
        return couponRule;
    }

    public void setCouponRule(String couponRule) {
        this.couponRule = couponRule == null ? null : couponRule.trim();
    }

    public Integer getCouponStock() {
        return couponStock;
    }

    public void setCouponStock(Integer couponStock) {
        this.couponStock = couponStock;
    }

    public Integer getTakeNum() {
        return takeNum;
    }

    public void setTakeNum(Integer takeNum) {
        this.takeNum = takeNum;
    }

    public Integer getUseNum() {
        return useNum;
    }

    public void setUseNum(Integer useNum) {
        this.useNum = useNum;
    }

    public Integer getAlertNum() {
        return alertNum;
    }

    public void setAlertNum(Integer alertNum) {
        this.alertNum = alertNum;
    }

    public String getSellerActivityId() {
        return sellerActivityId;
    }

    public void setSellerActivityId(String sellerActivityId) {
        this.sellerActivityId = sellerActivityId == null ? null : sellerActivityId.trim();
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public Date getCreatedStime() {
        return createdStime;
    }

    public void setCreatedStime(Date createdStime) {
        this.createdStime = createdStime;
    }

    public Date getModifiedStime() {
        return modifiedStime;
    }

    public void setModifiedStime(Date modifiedStime) {
        this.modifiedStime = modifiedStime;
    }

    public Integer getValidDays() {
        return validDays;
    }

    public void setValidDays(Integer validDays) {
        this.validDays = validDays;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    public Long getCouponThreshold() {
        return couponThreshold;
    }

    public void setCouponThreshold(Long couponThreshold) {
        this.couponThreshold = couponThreshold;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CouponBatchSeller other = (CouponBatchSeller) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSellerId() == null ? other.getSellerId() == null : this.getSellerId().equals(other.getSellerId()))
            && (this.getCouponType() == null ? other.getCouponType() == null : this.getCouponType().equals(other.getCouponType()))
            && (this.getCouponName() == null ? other.getCouponName() == null : this.getCouponName().equals(other.getCouponName()))
            && (this.getCouponAmount() == null ? other.getCouponAmount() == null : this.getCouponAmount().equals(other.getCouponAmount()))
            && (this.getCouponStartDate() == null ? other.getCouponStartDate() == null : this.getCouponStartDate().equals(other.getCouponStartDate()))
            && (this.getCouponEndDate() == null ? other.getCouponEndDate() == null : this.getCouponEndDate().equals(other.getCouponEndDate()))
            && (this.getCouponRule() == null ? other.getCouponRule() == null : this.getCouponRule().equals(other.getCouponRule()))
            && (this.getCouponStock() == null ? other.getCouponStock() == null : this.getCouponStock().equals(other.getCouponStock()))
            && (this.getTakeNum() == null ? other.getTakeNum() == null : this.getTakeNum().equals(other.getTakeNum()))
            && (this.getUseNum() == null ? other.getUseNum() == null : this.getUseNum().equals(other.getUseNum()))
            && (this.getAlertNum() == null ? other.getAlertNum() == null : this.getAlertNum().equals(other.getAlertNum()))
            && (this.getSellerActivityId() == null ? other.getSellerActivityId() == null : this.getSellerActivityId().equals(other.getSellerActivityId()))
            && (this.getIsDel() == null ? other.getIsDel() == null : this.getIsDel().equals(other.getIsDel()))
            && (this.getCreatedStime() == null ? other.getCreatedStime() == null : this.getCreatedStime().equals(other.getCreatedStime()))
            && (this.getModifiedStime() == null ? other.getModifiedStime() == null : this.getModifiedStime().equals(other.getModifiedStime()))
            && (this.getValidDays() == null ? other.getValidDays() == null : this.getValidDays().equals(other.getValidDays()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
            && (this.getCouponThreshold() == null ? other.getCouponThreshold() == null : this.getCouponThreshold().equals(other.getCouponThreshold()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSellerId() == null) ? 0 : getSellerId().hashCode());
        result = prime * result + ((getCouponType() == null) ? 0 : getCouponType().hashCode());
        result = prime * result + ((getCouponName() == null) ? 0 : getCouponName().hashCode());
        result = prime * result + ((getCouponAmount() == null) ? 0 : getCouponAmount().hashCode());
        result = prime * result + ((getCouponStartDate() == null) ? 0 : getCouponStartDate().hashCode());
        result = prime * result + ((getCouponEndDate() == null) ? 0 : getCouponEndDate().hashCode());
        result = prime * result + ((getCouponRule() == null) ? 0 : getCouponRule().hashCode());
        result = prime * result + ((getCouponStock() == null) ? 0 : getCouponStock().hashCode());
        result = prime * result + ((getTakeNum() == null) ? 0 : getTakeNum().hashCode());
        result = prime * result + ((getUseNum() == null) ? 0 : getUseNum().hashCode());
        result = prime * result + ((getAlertNum() == null) ? 0 : getAlertNum().hashCode());
        result = prime * result + ((getSellerActivityId() == null) ? 0 : getSellerActivityId().hashCode());
        result = prime * result + ((getIsDel() == null) ? 0 : getIsDel().hashCode());
        result = prime * result + ((getCreatedStime() == null) ? 0 : getCreatedStime().hashCode());
        result = prime * result + ((getModifiedStime() == null) ? 0 : getModifiedStime().hashCode());
        result = prime * result + ((getValidDays() == null) ? 0 : getValidDays().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        result = prime * result + ((getCouponThreshold() == null) ? 0 : getCouponThreshold().hashCode());
        return result;
    }
}